home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / Issue46 / Clinic / AutomationServer1MainFormU.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  1999-03-12  |  562 b   |  35 lines

  1. unit AutomationServer1MainFormU;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   StdCtrls;
  8.  
  9. type
  10.   TFrmServer = class(TForm)
  11.     Label1: TLabel;
  12.     procedure FormCreate(Sender: TObject);
  13.   private
  14.     { Private declarations }
  15.   public
  16.     { Public declarations }
  17.   end;
  18.  
  19. var
  20.   FrmServer: TFrmServer;
  21.  
  22. implementation
  23.  
  24. uses
  25.   ComServ;
  26.  
  27. {$R *.DFM}
  28.  
  29. procedure TFrmServer.FormCreate(Sender: TObject);
  30. begin
  31.   Application.ShowMainForm := ComServer.StartMode <> smAutomation;
  32. end;
  33.  
  34. end.
  35.